package com.daniel.gof.observer;

/**
 * 详细说明
 *
 * @author Daniel
 * @version V1.0
 * @date 2020/11/19 10:32
 */
public class Client {

    public static void main(String[] args) {
        Weather weather = new Weather();

        Observer baidu = new Baidu();
        Observer sina = new Sina();

        weather.registerObserver(baidu);
        weather.registerObserver(sina);

        weather.changeData(1, 3, 4);


        weather.unRegisterObserver(sina);
        weather.changeData(3, 4, 5);
    }
}
